package com.school.pojo;

import java.time.LocalDateTime;

public class Leave {
	private Integer leave_id;//
	private Integer student_id;//学生信息id，其中包括班级和老师
	private String leave_reason;//请假理由
	private Integer state;//0表示未批，1表示已批准
	private LocalDateTime begin_time;//请假开始时间
	private LocalDateTime finish_time;//请假结束时间
	private Integer leave_affair;//1、事假，2病假3,、其他
	private String teacher_name;//班主任
	public Leave() {
		// TODO Auto-generated constructor stub
	}

	

	public Leave(Integer leave_id, Integer student_id, String leave_reason, Integer state, LocalDateTime begin_time,
			LocalDateTime finish_time, Integer leave_affair, String teacher_name) {
		super();
		this.leave_id = leave_id;
		this.student_id = student_id;
		this.leave_reason = leave_reason;
		this.state = state;
		this.begin_time = begin_time;
		this.finish_time = finish_time;
		this.leave_affair = leave_affair;
		this.teacher_name = teacher_name;
	}



	public Integer getLeave_id() {
		return leave_id;
	}

	public void setLeave_id(Integer leave_id) {
		this.leave_id = leave_id;
	}

	public Integer getStudent_id() {
		return student_id;
	}

	public void setStudent_id(Integer student_id) {
		this.student_id = student_id;
	}

	public String getLeave_reason() {
		return leave_reason;
	}

	public void setLeave_reason(String leave_reason) {
		this.leave_reason = leave_reason;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public LocalDateTime getBegin_time() {
		return begin_time;
	}

	public void setBegin_time(LocalDateTime begin_time) {
		this.begin_time = begin_time;
	}

	public LocalDateTime getFinish_time() {
		return finish_time;
	}

	public void setFinish_time(LocalDateTime finish_time) {
		this.finish_time = finish_time;
	}

	public Integer getLeave_affair() {
		return leave_affair;
	}

	public void setLeave_affair(Integer leave_affair) {
		this.leave_affair = leave_affair;
	}
	
	

	public String getTeacher_name() {
		return teacher_name;
	}



	public void setTeacher_name(String teacher_name) {
		this.teacher_name = teacher_name;
	}



	@Override
	public String toString() {
		return "Leave [leave_id=" + leave_id + ", student_id=" + student_id + ", leave_reason=" + leave_reason
				+ ", state=" + state + ", begin_time=" + begin_time + ", finish_time=" + finish_time + ", leave_affair="
				+ leave_affair + ", teacher_name=" + teacher_name + "]";
	}
	
	

}
